<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" dir="ltr" id="minwidth" > 
<head> 
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="keywords" content="vivo, VIVO, Vivo, CMS" />
	<meta name="description" content="VIVO! - 网站架设引擎及内容管理系统" />
	<title>VIVO - 管理后台</title>
	<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="<?php echo $adminPath; ?>/css/template.css" rel="stylesheet" type="text/css" />
	<!--[if IE 7]><link href="<?php echo $adminPath; ?>/css/ie7.css" rel="stylesheet" type="text/css" /><![endif]-->
	<!--[if lte IE 6]><link href="<?php echo $adminPath; ?>/css/ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
	<script type="text/javascript" src="<?php echo $commonPath; ?>/js/jquery-1.4.4.js"></script>
	
	<link href="<?php echo $commonPath; ?>/css/ui-lightness/jquery-ui-1.8.7.custom.css" rel="stylesheet" type="text/css" /> 
	<script type="text/javascript" src="<?php echo $commonPath; ?>/js/jquery-ui-1.8.7.custom.min.js"></script>
	
	<script type="text/javascript" src="<?php echo $adminPath; ?>/js/common.js"></script>
	
	<script type="text/javascript">
	function edit(id, _do) {
		setHide("do", _do);
		setHide("id", id);
		document.adminForm.submit();
	}

	function categories_del(id, css)
	{
		if (css.indexOf("node-c3-") > -1) {
			confirm("categories-del-confirm", "该类别拥有子类别，请先返回删除该类别下级类别。");
		}
		else {
			prompt("categories-del-confirm", 
				"本操作不可恢复，您确定要删除该类别并且清除类别的文件保存目录吗？<br/>注意：该类别下的文档被删除到文档回收站中。", function() { 
				edit(id, "delete");
			});
		}
	}
	</script>
</head>
<body id="minwidth-body"> 
	<?php $this->display('common/header.phtml'); ?>
	
	<!-- start content-box -->
	<div id="content-box"> 
		<div class="border"> 
			<div class="padding">
			
				<!-- start toolbar-box -->
				<div id="toolbar-box">
					<!-- start t -->
					<div class="t"> 
						<div class="t"> 
							<div class="t"></div> 
						</div>
					</div>
					<!-- end t -->
					<div class="m"> 
						<!-- start toolbar -->
						<div class="toolbar" id="toolbar"> 
							<table class="toolbar"><tr>
								 
								<td class="button" id="toolbar-new"> 
									<a href="<?php echo $cUrl?>/add" class="toolbar"><span class="icon-32-new" title="添加类别"></span>添加类别</a>
								</td>
								
								<td class="button" id="toolbar-config"> 
									<a href="javascript:setHide('do', 'saveOrder');document.adminForm.submit();" class="toolbar"><span class="icon-32-save" title="保存排序"></span>保存排序</a>
								</td>
								
							</tr></table> 
						</div> 
						<!-- end toolbar -->
						<div class="header icon-48-categories">类别: <small>[ 列表 ]</small></div> 
						<div class="clr"></div> 
					</div> 
					<!-- start b -->
					<div class="b">
						<div class="b">
							<div class="b"></div>
						</div>
					</div>
					<!-- end b -->
				</div>
				<!-- end toolbar-box -->
				
   				<div class="clr"></div>
				<?php $this->display('common/message.phtml'); ?>
				
				<!-- start element-box -->
				<div id="element-box"> 
					<!-- start t -->
					<div class="t"> 
						<div class="t"> 
							<div class="t"></div> 
						</div>
					</div>
					<!-- end t -->
					
					<div class="m"> 
						
						<?php include '_list.phtml'; ?>
						
						<div class="clr"></div>
					</div>
					
					<!-- start b -->
					<div class="b">
						<div class="b">
							<div class="b"></div>
						</div>
					</div>
					<!-- end b -->
				</div>
				<!-- end element-box -->
		
				<noscript>!警告! 必须启用Javascript管理后台才能正常运作</noscript>
				<div class="clr"></div>
			</div><div class="clr"></div> 
		</div>
	</div>
	<!-- end content-box -->

	<!-- start categories-del-confirm -->
	<div id="categories-del-confirm" title="确定删除此类别？" style="display: none"> 
	<p>
		<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
		<label id="categories-del-confirm-box" style="color: #FF0000"></label>
	</p> 
	</div> 
	<!-- end categories-del-confirm -->

	<?php $this->display('common/footer.phtml'); ?>
</body> 
</html> 